/*
 * Copyright © 2015 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@import "../../styles/variables.less";

body.state-explore {

  .explore-table {
    margin-left: 0;
    margin-right: 0;
    height: 300px;
    margin-bottom: 15px;
    ::-webkit-scrollbar {
      display: none;
    }

    .table-list {
      width: 300px;
      height: 100%;
      display: inline-block;
      float: left;
      background-color: white;
      overflow: hidden;

      .list-group {
        width: 100%;
        height: 100%;
        overflow: auto;
        padding-right:-15px;
      }

      a.list-group-item {
        span {
          font-weight: bold;
          vertical-align: middle;
        }

        &.selected {
          background-color: @table-bg;
          color: @cdap-orange;
        }

        &:first-child {
          border-top-right-radius: 0;
          border-top-left-radius: 0;
        }

        &:last-child {
          border-bottom-right-radius: 0;
          border-bottom-left-radius: 0;
        }
      }
    }


    .explore-content {
      height: 100%;
      width: 840px;
      float: left;
      background-color: @table-bg;

      .tab {
        height: 100%;
        float: left;

        &:not(:last-child) {
          margin-right: 2px;
        }

        .tab-heading {
          background-color: @cdap-darkness;
          height: 100%;
          overflow-y: hidden;
          display: inline-block;
          width: 30px;
          position: relative;
          cursor: pointer;

          &.active {
            background-color: @cdap-orange;
          }

          .heading-rotate {
            transform: rotate(90deg);
            vertical-align: middle;
            top: 15px;
            left: 0;
            right: 0;
            position: absolute;
            white-space: nowrap;

            h3 {
              margin: 0px;
              color: white;
              font-weight: 400;
            }
          }
        }

        .tab-content {
          display: inline-block;
          vertical-align: top;
          overflow-y: auto;
          height: 100%;
          width: 707px;
          background-color: @table-bg;
          position: relative;

          .well {
            background-color: @table-bg;
            position: relative;
            top: 50%;
            transform: translateY(-50%);
          }

          table.table {
            margin: 0;
          }

        }
      }
    }

  }
}
